/*
 * denne klasse er til de items der er udlånt.
 */
package models;

/**
 *
 * @author Dan
 */
public class StorageItem {

    private int storageId;
    private int amount;
    private int lostAmount;
    private String serialnumber;
    private Storage stoObj = null;

     public StorageItem(Storage stoObj, int storageId, int amount, int lostAmount, String serialnumber) {
        this.stoObj = stoObj;
        this.storageId = storageId;
        this.amount = amount;
        this.lostAmount = lostAmount;
        this.serialnumber = serialnumber;
    }

    public StorageItem(int storageId, int amount, int lostAmount, String serialnumber) {
        this.storageId = storageId;
        this.amount = amount;
        this.lostAmount = lostAmount;
        this.serialnumber = serialnumber;
    }

    public String getStorageName()
    {
        return stoObj.getName();
    }
    public String getStorageDescription()
    {
        return stoObj.getDescription();
    }
    public int getStorageAmount()
    {
        return stoObj.getAmount();
    }
    public int getAmount() {
        return amount;
    }

    public int getLostAmount() {
        return lostAmount;
    }

    public String getSerialnumber() {
        return serialnumber;
    }

    public int getStorageId() {
        return storageId;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public void setLostAmount(int lostAmount) {
        this.lostAmount = lostAmount;
    }

    public void setSerialnumber(String serialnumber) {
        this.serialnumber = serialnumber;
    }

    public void setStorageId(int storageId) {
        this.storageId = storageId;
    }

    public Storage getStoObj() {
        return stoObj;
    }
}
